﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ESF.MUP.BasePlatform
{
    public class BaseException : Exception
    {
        public BaseException(Int32 errorCode) : base() { this.ErrorCode = errorCode; }

        public BaseException(Int32 errorCode, String message)
            : base(message)
        {
            this.ErrorCode = errorCode;
        }

        public BaseException(Int32 errorCode, String message, Exception innerException) : base(message, innerException) { this.ErrorCode = errorCode; }

        public BaseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }

        public Int32 ErrorCode { get; set; }

        public override string Message
        {
            get
            {
                return base.Message;
            }
        }


    }
}
